package com.wits.platform.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.wits.platform.dao.custom.MmrUserRoleDaoCustom;
import com.wits.platform.entity.MmrUserRole;
import com.wits.platform.entity.MmrUserRolePK;

public interface MmrUserRoleDao extends BaseDao<MmrUserRole,MmrUserRolePK>,MmrUserRoleDaoCustom{

	@Query(value="delete from MmrUserRole ur where ur.id.userId=:userId")
	@Modifying
	void deleteByUserId(@Param("userId") String userId);


}
